package com.thinkcube.edutainment.domain.data;

import android.os.Parcel;
import android.os.Parcelable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class OtherForumData implements Parcelable {
	@JsonProperty("id")
	String id;
	@JsonProperty("title")
	String title;
	@JsonProperty("description")
	String description;
	@JsonProperty("course")
	String course;
	@JsonProperty("type")
	String type;

	@JsonProperty("allow_replies")
	String allow_replies;

	@JsonProperty("createdDate")
	DateData createdDate;

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getCourse() {
		return this.course;
	}

	public void setCourse(String course) {
		this.course = course;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getAllow_replies() {
		return this.allow_replies;
	}

	public void setAllow_replies(String allow_replies) {
		this.allow_replies = allow_replies;
	}

	public DateData getCreatedDate() {
		return this.createdDate;
	}

	public void setCreatedDate(DateData createdDate) {
		this.createdDate = createdDate;
	}

	protected OtherForumData(Parcel in) {
		id = in.readString();
		title = in.readString();
		description = in.readString();
		course = in.readString();
		type = in.readString();
		allow_replies = in.readString();
		createdDate = (DateData) in.readValue(DateData.class.getClassLoader());

	}

	public OtherForumData() {
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(id);
		dest.writeString(title);
		dest.writeString(description);
		dest.writeString(course);
		dest.writeString(type);
		dest.writeString(allow_replies);
		dest.writeValue(createdDate);

	}

	public static final Parcelable.Creator<OtherForumData> CREATOR = new Parcelable.Creator<OtherForumData>() {
		public OtherForumData createFromParcel(Parcel in) {
			return new OtherForumData(in);
		}

		public OtherForumData[] newArray(int size) {
			return new OtherForumData[size];
		}
	};
}
